<?php
/**
 * BActiveGoogleMapTestCase.php
 * 
 * @author Bradley Booms <Bradley.Booms@nsighttel.com>
 * @version Creation Date: Jun 7, 2007
 */

/**
 * BActiveGoogleMapTestCase.php class
 * 
 * 
 * 
 * Properties
 * -
 * 
 * @author Bradley Booms <Bradley.Booms@nsighttel.com>
 * @version Modified Date: Jun 7, 2007
 * 
 * Modifications:
 */
class BActiveGoogleMapRedirectTestCase extends SeleniumTestCase{
	function testPostbackRedirect(){
		// this test does not work in IE, but does in mozilla and opera, Not tested in Safari.
		$this->skipBrowsers(self::INTERNET_EXPLORER);
		
		$this->setTimeout(6000);
		$this->open("functional/index.php?page=BActiveGoogleMapRedirectTest");
		$this->assertTextPresent("BActiveGoogleMap Functional Test");
		
		
		$this->clickAndWait("redirectButton");
		$this->assertTextPresent("Welcome to PRADO!");
	}
	
	function testCallbackRedirect(){
		// this test does not work in IE, but does in mozilla and opera, Not tested in Safari.
		$this->skipBrowsers(self::INTERNET_EXPLORER);
		
		$this->setTimeout(6000);
		$this->open("functional/index.php?page=BActiveGoogleMapRedirectTest");
		$this->assertTextPresent("BActiveGoogleMap Functional Test");
		
		
		$this->clickAndWait("activeRedirectButton");
		$this->assertTextPresent("Welcome to PRADO!");
	}
}
?>